import React from 'react';

import Logo from './Logo.jsx';
import Navtitle from './Navtitle.jsx';

class Navbar extends React.Component{
  static propTypes: {
    addTodo: PropTypes.func.isRequired,
    callbackApp: PropTypes.func.isRequired
  }
  
  constructor(props) {
    super(props);
  }

  handleMap(text) {
    this.props.callbackApp("add-point");
    this.props.addTodo('add-point');
  }

  render() {
    return (
      <div className="navbar">
        <Logo />
        <Navtitle handleClick={this.handleMap.bind(this)} />
      </div>
    );
  }
};

export default Navbar;




